﻿using Sys.Core;
using Sys.Core.Models.Queries;
using Sys.Core.Models.VO;
using Microsoft.AspNetCore.Mvc;
using MiniFox.Infrastructure;
using MiniFox.Platform.Applications.Web;
using MiniFox.Utility;
using MiniFox.Web.Filters;
using MiniFox.Web.Infrastructure;

namespace Sys.Controllers
{
    [NoCache, ValidationFilter, Area(GlobalConstants.AREA_NAME)]
    public class SigninLogController : AuthorizedController<IOnlineService>
    {
        [HttpPost]
        public Response<ResultObject<IEnumerable<SigninLogVo>>> Query([FromBody] PagedQueryObject<SignInQuery> request)
        {
            var result = this.Component.QuerySigninLog(request);
            return result.CreateResponse();
        }

    }
}
